import request from '@/utils/request'

// 初始化客户订单
export function initScmCustomerOrders(projectId) {
  return request({
    url: '/scm/scmCustomerOrders/init/' + projectId,
    method: 'post'
  })
}


// 查询客户订单列表
export function listScmCustomerOrders(query) {
  return request({
    url: '/scm/scmCustomerOrders/list',
    method: 'get',
    params: query
  })
}

// 查询客户订单详细
export function getScmCustomerOrders(id) {
  return request({
    url: '/scm/scmCustomerOrders/' + id,
    method: 'get'
  })
}

// 新增客户订单
export function addScmCustomerOrders(data) {
  return request({
    url: '/scm/scmCustomerOrders',
    method: 'post',
    data: data
  })
}

// 修改客户订单
export function updateScmCustomerOrders(data) {
  return request({
    url: '/scm/scmCustomerOrders',
    method: 'put',
    data: data
  })
}

// 删除客户订单
export function delScmCustomerOrders(id) {
  return request({
    url: '/scm/scmCustomerOrders/' + id,
    method: 'delete'
  })
}
